<template>
  <span ref="scrollIntoView" id="tem1-scroll-box-top"></span>
  <div class="btm-arrow">
    <a class="arrow-item" target="_self" href="javascript:void(0)" @click="stepExhibit(1)">
      <div class="arrow-img">
        <arrowLeft />
      </div>
      <span
        :style="{
          fontSize: '16px',
          color: store.styleInfo.shmentColor,
          userSelect: 'none',
          fontFamily: 'none',
        }"
        >上一个展品</span
      >
    </a>
    <a class="arrow-item" target="_self" href="javascript:void(0)" @click="stepExhibit(2)">
      <span
        :style="{
          fontSize: '16px',
          color: store.styleInfo.shmentColor,
          userSelect: 'none',
          fontFamily: 'none',
        }"
        >下一个展品</span
      >
      <div class="arrow-img">
        <arrowRight />
      </div>
    </a>
  </div>
  <div class="heard-box" v-if="info">
    <div class="heard-left">
      <div class="left-top">
        <a
          class="Icon-3d"
          :style="{
            backgroundImage: `url(${ImgUrlCancat + '/template/template13Dicon' + store.styleInfo.colorType + '.png'})`,
          }"
          target="blank"
          :href="info.externalUrl"
          v-if="info.externalUrl"
        >
        </a>
        <t-image
          :style="{
            backgroundColor: store.styleInfo.auxiliaryColor,
          }"
          @click="open"
          v-if="imgUrl"
          class="left-top-img"
          fit="contain"
          position="center"
          :src="$filters.getLinkUrl(imgUrl + '?imageView2/2/w/680/format/webp')"
          alt=""
        />
        <div class="zoomIn" @click="open">
          <t-icon name="zoom-in" />
        </div>
      </div>
    </div>
    <div class="heard-right">
      <div class="right-item-level">
        <span>{{ info.name }}</span>
      </div>
      <div>
        <div class="right-item">
          <span class="item-title1">展品类型</span><span class="item-title2">{{ info.typeValue }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">展品来源</span
          ><span class="item-title2">{{ info.sourceValue ? info.sourceValue : '--' }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">所属年代</span
          ><span class="item-title2">{{
            info.concreteTimes ? info.concreteTimes : info.ageIds ? info.ageIds : '--'
          }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">收藏单位</span
          ><span class="item-title2">{{
            info.location ? info.location : info.companyName ? info.companyName : '--'
          }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">展品质地</span
          ><span class="item-title2">{{ info.texture ? info.texture : '--' }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">展品等级</span
          ><span class="item-title2">{{ info.levelValue ? info.levelValue : '--' }}</span>
        </div>
        <div class="right-item">
          <span class="item-title1">展品尺寸</span><span class="item-title2">{{ info.size ? info.size : '--' }}</span>
        </div>
        <div class="left-btm" v-if="info.images?.length > 0">
          <!-- <div class="left-btm-chevron" @click="putCruuent(1)">
          <t-icon name="chevron-left" color="#C0C4CC" size="30"></t-icon>
        </div> -->
          <div class="item-title1">展品图片</div>
          <div class="left-content" id="scroll-by-box">
            <div
              @click="lookIndex(index)"
              class="scroll-item"
              v-for="(item, index) in info.images"
              :key="index"
              :id="`scroll-child-${index}`"
              :class="{ 'img-active': cruuent == index }"
              :style="{ borderColor: cruuent == index ? store.styleInfo.shmentColor : '' }"
            >
              <div class="img-shadow">
                <span v-if="item.type == 1">正立面</span>
                <span v-else-if="item.type == 2">侧立面</span>
                <span v-else-if="item.type == 3">顶面</span>
                <span v-else-if="item.type == 4">底面</span>
                <span v-else-if="item.type == 5">侧面</span>
                <span v-else>未设置</span>
              </div>
              <t-image
                class="scroll-item-img"
                :src="$filters.getLinkUrl(item.data + '?imageView2/1/w/80/h/80/format/webp')"
                alt=""
              />
            </div>
          </div>

          <!-- <div class="left-btm-chevron" @click="putCruuent(2)">
          <t-icon name="chevron-right" color="#C0C4CC" size="30"></t-icon>
        </div> -->
        </div>
      </div>

      <div class="bottom-btn-box">
        <div class="btn-box">
          <div class="add-btn1" @click="emitAddInfo" :class="'hoverStyle' + store.styleInfo.colorType">
            <t-badge v-if="countNum" dot :count="countNum"
              ><i
                class="doorIcon"
                :style="{
                  fontSize: '24px',
                }"
              >
                &#xe648;</i
              ></t-badge
            >
            <i
              v-else
              class="doorIcon"
              :style="{
                fontSize: '24px',
              }"
            >
              &#xe648;</i
            >
            加入对比
          </div>
          <div>
            <t-popup content="" placement="bottom">
              <template #content>
                <shear @shearType="shearType" />
              </template>
              <div class="add-btn1" :class="'hoverStyle' + store.styleInfo.colorType">
                <i
                  class="doorIcon"
                  :style="{
                    fontSize: '24px',
                  }"
                >
                  &#xe64b;</i
                >
                <span>分享</span>
              </div>
            </t-popup>
          </div>
          <div
            class="add-btn1"
            @click="postattention"
            v-if="info.openStatus === 1"
            :class="'hoverStyle' + store.styleInfo.colorType"
          >
            <i
              v-if="!info.isFollow"
              class="doorIcon"
              :style="{
                fontSize: '24px',
              }"
            >
              &#xe64c;</i
            ><i
              v-else
              class="doorIcon"
              :style="{
                fontSize: '24px',
              }"
              style="color: #ffd058"
            >
              &#xe649;</i
            >
            <span>{{ info.followTotal }}</span>
          </div>
        </div>

        <div
          v-if="info.openStatus === 1"
          @click="addId"
          class="exhibit"
          :class="{ cursorAA: isInformation }"
          :style="{
            backgroundColor: store.styleInfo.themeColor,
            justifyContent: info.openStatus === 1 ? 'center' : 'left',
          }"
        >
          <i
            class="doorIcon"
            :style="{
              fontSize: '20px',
            }"
          >
            &#xe64e;</i
          >
          <span>添加至展览</span>
        </div>
      </div>

      <t-image-viewer v-model:visible="visible" :images="urlList"> </t-image-viewer>
    </div>
    <div class="select-box">
      <t-dialog
        header="添加展品至展览"
        :visible="visibleStep"
        :confirm-on-enter="true"
        :on-cancel="closetables"
        :on-close="closetables"
        :cancelBtn="null"
        :confirmBtn="null"
      >
        <template #body>
          <t-row :gutter="16" style="width: 100%">
            <t-col :span="12">
              <div class="hw-dialog-box">
                <span class="titles">请选择展览:</span>
                <div class="hw-dialog-box-select">
                  <t-select v-model="projectId" placeholder="请选择展览">
                    <t-option :key="item.id" :label="item.name" :value="item.id" v-for="item in selectList" />
                  </t-select>
                </div>
              </div>
            </t-col>
          </t-row>
        </template>
        <template #footer>
          <t-button @click="visibleStep = false" theme="default" variant="outline">取消</t-button>
          <t-button @click="okStep">确定</t-button>
        </template>
      </t-dialog>
    </div>
  </div>
  <div
    v-if="info.description"
    class="describe-box"
    :style="{
      backgroundColor: store.styleInfo.auxiliaryColor,
    }"
  >
    <div class="dot">
      <dotIcon :ischange="1" fontsize="20px" />
      <p class="describe-title">展品描述</p>
      <dotIcon :ischange="1" fontsize="20px" />
    </div>
    <div class="audeo-parent" v-if="info.audio && info.audio.url" :class="'audeo-parent' + store.styleInfo.colorType">
      <playAudio
        :descriptionColor="colorList[store.styleInfo.colorType - 1].fontColor"
        :playColor="colorList[store.styleInfo.colorType - 1].themeColor"
        :timeColor="colorList[store.styleInfo.colorType - 1].fontColor"
        :iconColor="colorList[store.styleInfo.colorType - 1].themeColor"
        :nameColor="colorList[store.styleInfo.colorType - 1].fontColor"
        :background="getAudioColor(store.styleInfo.colorType)"
        :name="info.audio.name"
        :url="info.audio.url"
        :description="info.audio.description"
      />
    </div>
    <div class="describe-text" v-html="info.description"></div>
  </div>
  <exhibitVue :info="info" @emitchangeExhi="emitchangeExhi" :showpieceid="showpieceid" />
  <messageModel
    submitText="前往"
    title="提示"
    :visible="visibleMessage1"
    problem="您暂未登录"
    message="是否前往登录？"
    @closeClick="closeClick"
    @submitClick="pathSubmitClick"
  />
  <NavVue :flag="true" :name="info.name"></NavVue>
</template>

<script setup lang="ts">
// @ts-nocheck
import { ImgUrlCancat } from '@/utils/minxin';
import { colorList } from '@/pages/templatePage/data';
import playAudio from '@/components/templatePlay/audio.vue';
import { urls } from '@/utils/request/upload';
import { onMounted, ref, watch } from 'vue';
import { MessagePlugin } from 'tdesign-vue-next';
import { useProjectStore, getExhibitStore } from '@/store';
import { followSet } from '@/api/interact/interact';
import arrowLeft from './arrowLeft.vue';
import arrowRight from './arrowRight.vue';
import dotIcon from './dotIcon.vue';
import { useRoute } from 'vue-router';
import { exhibitShowpiece } from '@/api/templates/templates';
import exhibitVue from '../exhibitsInfo.vue';
import messageModel from '@/components/messageModel/index.vue';
import { getHeardToken } from '@/api/utils';
import { projectLists } from '@/api/project/project';
import { addExhibits } from '@/api/desgin/desgin';
import shear from '@/components/shear/shear.vue';
import { toQQzone, toQQ, toWeibo, toWechat } from '@/utils/shear';

import { outLogin, doorUrl } from '@/utils/minxin';
import NavVue from './nav.vue';

const storeExhibit = getExhibitStore();
const countNum = ref(false);
const route = useRoute();
const store = useProjectStore();
const imgUrl = ref('');
const visible = ref(false);
const viewerIndex = ref(0);
const urlList = ref([]);
const selectList = ref(null);
const info = ref({});
const cruuent = ref(0);
const loading = ref(false);
const visibleStep = ref(false);
const projectId = ref(null);
const scrollIntoView = ref(null);
const visibleMessage1 = ref(false);
// const emit = defineEmits(['changeattention']);
const getImgurl = (e: any) => {
  if (e.indexOf('https://') !== -1) {
    return e;
  } else {
    return urls + e;
  }
};
const closetables = (context?: any): void => {
  visibleStep.value = false;
};
const init = async () => {
  try {
    //console.log(showpieceid.value);

    let { data } = await exhibitShowpiece(moduleId.value, showpieceid.value);
    info.value = data;
    urlList.value = [];
    // //console.log(info.value.followTotal, 'followTotal');

    urlList.value.push(getImgurl(info.value.coverUrl));
    // if (info.value.images.length > 0) {
    //   imgUrl.value = info.value.images[0].data;
    //   info.value.images.forEach((element) => {
    //     urlList.value.push(getImgurl(element.data));
    //   });
    // } else {
    imgUrl.value = info.value.coverUrl;
    // }
    //console.log('info.id', urlList.value);
    // initInfo();
  } catch {}
  find();
};
const closeClick = () => {
  //取消
  visibleMessage1.value = false;
};

const pathSubmitClick = () => {
  //确认登陆

  visibleMessage1.value = false;
  let url = window.location.href;
  let redirectUrl = doorUrl + 'login?redirect=' + url;
  // window.location.href = redirectUrl;
  outLogin(redirectUrl);
};
const moduleId = ref(0);
const showpieceid = ref(0);
moduleId.value = route.query.moduleId;
showpieceid.value = Number(route.query.id);
init();
const open = () => {
  visible.value = true;
};

const putCruuent = (type: number, index: Number) => {
  if (type == 1 && cruuent.value !== 0) {
    cruuent.value = cruuent.value - 1;
  } else if (type === 2 && cruuent.value !== info.value.images.length - 1) {
    cruuent.value = cruuent.value + 1;
  }
  //console.log(`scroll-child-${cruuent.value}`);
  let ele = document.getElementById(`scroll-child-${cruuent.value}`);
  ele.scrollIntoView({ behavior: 'smooth', block: 'center' });
  imgUrl.value = info.value.images[cruuent.value].data;
  // ele.scrollIntoView();
};
const lookIndex = (e: number) => {
  cruuent.value = e;
  let ele = document.getElementById(`scroll-child-${cruuent.value}`);
  ele.scrollIntoView({ behavior: 'smooth', block: 'center' });
  imgUrl.value = info.value.images[cruuent.value].data;
};
const getAudioColor = (type: number) => {
  let color = '';
  switch (type) {
    case 1:
      color = 'rgba(250, 249, 247, .3)';
      break;
    case 2:
      color = 'rgba(250, 251, 252, .3)';
      break;
    case 3:
      color = 'rgba(252, 251, 250, .3)';
      break;
    case 4:
      color = 'rgba(245, 245, 245, .3)';
      break;
    default:
      color = 'rgba(247, 247, 247, .3)';
      break;
  }
  return color;
};
watch(
  () => info.value.id,
  () => {
    // initInfo();
  },
  { deep: true },
);
watch(
  () => showpieceid.value,
  () => {
    init();
  },
  { deep: true },
);

const find = () => {
  //console.log('route', storeExhibit.ExhibitList);

  const targetExhibit = storeExhibit.ExhibitList.filter((exhibit) => exhibit.id == showpieceid.value);
  if (targetExhibit.length > 0) {
    countNum.value = 1;
  } else {
    countNum.value = 0;
  }
};

watch(
  () => storeExhibit.ExhibitList,
  () => {
    //console.log('storeExhibit', storeExhibit.ExhibitList);
    find();
  },
  { immediate: true, deep: true },
);

// 添加关注事件
const postattention = async () => {
  let token = getHeardToken();
  if (!token) {
    visibleMessage1.value = true;
    return;
  } else {
    try {
      let { data } = await followSet({ refType: 4, refId: info.value.id });
      info.value.isFollow = data;
      if (info.value.isFollow) {
        info.value.followTotal = info.value.followTotal + 1;
        MessagePlugin.success('关注成功');
      } else {
        info.value.followTotal = info.value.followTotal === 0 ? 0 : info.value.followTotal - 1;
        MessagePlugin.warning('取消关注');
      }
      // init();
    } catch {
      //console.log('失败');
    }
  }
};
const stepExhibit = (type: number) => {
  //console.log(type);

  if (type === 1) {
    if (info.value.prev) {
      showpieceid.value = info.value.prev.value;

      document.documentElement.scrollTop = 0;
    } else {
      MessagePlugin.error('暂无上一个展品');
      return;
    }
  } else {
    if (info.value.next) {
      showpieceid.value = info.value.next.value;
      //console.log(info.value.next);

      document.documentElement.scrollTop = 0;
    } else {
      MessagePlugin.error('暂无下一个展品');
      return;
    }
  }
  init();
};
const selectInit = async (type: number) => {
  //获取账号项目
  try {
    let res = await projectLists(info.value.id);
    if (res.data.length > 0) {
      selectList.value = res.data;
      visibleStep.value = true;
    } else MessagePlugin.warning('暂无可添加的展览');
  } catch (err) {
    //console.log(err);
  }
};
const addId = () => {
  let token = getHeardToken();
  if (!token) {
    visibleMessage1.value = true;
    return;
  }
  selectInit();
};
const okStep = async () => {
  //添加项目
  try {
    if (loading.value) {
      return;
    }
    if (projectId.value) {
      loading.value = true;
      let res = await addExhibits(projectId.value, info.value.id, [info.value.id]);
      //console.log(res.data);

      if (res.data) {
        MessagePlugin.success('添加成功');
        visibleStep.value = false;
        projectId.value = null;
      } else {
        // MessagePlugin.success('该展品已存在展品库');
        visibleStep.value = false;
      }
      // selectInit();
      loading.value = false;
    } else {
      MessagePlugin.success('请选择展览');
      return;
    }
  } catch {
    loading.value = false;
  }
};
const shearType = (e: number) => {
  //分享
  let url = window.location.href;
  let title = info.value.name;
  switch (e) {
    case 1:
      toQQzone(url, title);
      break;
    case 2:
      toQQ(url, title);
      break;
    case 3:
      toWeibo(url, title);
      break;
    default:
      toWechat(url, title);
      break;
  }
};

const emitAddInfo = () => {
  storeExhibit.pushExhibitInfo(info.value);
};
const emitchangeExhi = (info: any) => {
  //console.log(info);

  showpieceid.value = info;
  init();
};
onMounted(() => {
  const element = document.getElementById('tem1-scroll-box-top');
  element.scrollIntoView({ block: 'start' });
});
</script>

<style lang="less" scoped>
.dot {
  height: 30px;
  // line-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  font-size: 20px;
  // font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
  > p {
    padding: 0 5px;
  }
}
.describe-box {
  padding: 0 100px;
  padding-top: 80px;
  padding-bottom: 50px;
  margin-top: 80px;
  background: #f0e9e1;
  .describe-title {
    text-align: center;
    font-size: 22px;
    font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
    // font-weight: bold;
    color: #333333;
    line-height: 34px;
  }
  .describe-text {
    width: 1180px;
    margin: 0 auto;
    font-size: 17px;
    // font-family: SourceHanSerifCN-Medium, SourceHanSerifCN;
    // font-weight: 500;
    color: #333333;
    line-height: 32px;
    margin-bottom: 30px;
    font-family: none;
    text-align: justify;
    :deep(p) {
      font-family: none;
      text-indent: 2em;
      // margin-top: 24px;
    }
    :deep(div) {
      font-family: none;
      text-indent: 2em;
    }
  }
}
.copyright-box {
  //   padding: 50px 130px;
}

.t-row {
  margin: 0;
}

.heard-box {
  display: flex;
  width: 1180px;
  margin: 0 auto;
  padding: 24px 0px;
}

.heard-left {
  width: 580px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.left-top {
  width: 580px;
  height: 580px;
  position: relative;

  .left-top-img {
    width: 580px;
    height: 580px;
    cursor: pointer;
  }
}
.Icon-3d {
  display: flex;
  cursor: pointer;
  position: absolute;
  top: -2px;
  left: 16px;
  width: 40px;
  height: 52px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 10;
}
.heard-right {
  // flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin-left: 72px;
}

.right-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.item-title1 {
  font-size: 14px;
  // font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 32px;
  width: 56px;
}

.item-title2 {
  display: flex;
  flex: 1;
  font-size: 16px;
  // font-family: SourceHanSerifCN-Medium, SourceHanSerifCN;
  // font-weight: 500;
  color: #333333;
  line-height: 32px;
  margin-left: 16px;
}

.right-item-level {
  font-size: 28px;
  font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
  // font-weight: bold;
  color: #333333;
  line-height: 42px;

  img {
    width: 72px;
    height: 20px;
    margin-left: 18px;
  }

  margin-bottom: 32px;
}

.btn-box {
  display: flex;
  margin-top: 20px;
  margin-bottom: 19px;
}

.add-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 56px;
  background: #cfbda8;
  font-size: 16px;
  // font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  line-height: 24px;

  img {
    width: 40px;
    height: 40px;
    // margin-left: 6px;
  }
}

.add-btn1 {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
}
.hoverStyle1:hover {
  background: #f0e9e1;
}
.hoverStyle2:hover {
  background: #f0f3f6;
}
.hoverStyle3:hover {
  background: #faf5ed;
}
.hoverStyle4:hover {
  background: #e0e5e6;
}
.hoverStyle5:hover {
  background: #e1dfe0;
}

.left-btm {
  display: flex;
  margin-top: 12px;
}

.left-btm-chevron {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 88px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 3px;
}

.left-content {
  display: flex;
  flex: 1;
  height: 88px;
  margin-left: 12px;
  overflow: hidden;
  overflow-y: auto;
  flex-wrap: wrap;
  // overflow-y: hidden;
  min-width: 448px;
}

.scroll-item {
  cursor: pointer;
  position: relative;
  width: 88px;
  height: 88px;
  padding: 1px;
  border: 1px solid transparent;
  margin-right: 4px;
  flex-wrap: wrap;

  .scroll-item-img {
    width: 84px;
    height: 84px;
  }
}
.scroll-item:nth-child(5n) {
  margin-right: 0px;
}
.img-shadow {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  // font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #ffffff;
  line-height: 24px;
}

.scroll-item:hover {
  .img-shadow {
    display: flex;
  }
}

.img-active {
  border: 1px solid;
}

.btm-arrow {
  width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;

  padding-top: 28px;
}

.arrow-item {
  display: flex;
  align-items: center;

  span {
    font-size: 17px;
    // font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #333333;
    line-height: 32px;
    margin: 0 8px;
  }
}

.zoomIn {
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 0;
  font-size: 20px;
  color: #fff;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: all 0.3s;
  > .t-icon {
    font-size: 24px;
    position: relative;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
  }
}
.zoomIn:hover {
  opacity: 70%;
}
.t-image__wrapper {
  background: #f0e9e1;
  z-index: 0;
}

.exhibit {
  width: 336px;
  height: 56px;
  text-align: center;
  color: #fff;
  line-height: 56px;
  cursor: pointer;
  margin-left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  i {
    margin-top: 2px;
  }
}
.exhibit:hover {
  opacity: 0.7;
}
.bottom-btn-box {
  width: 100%;
  height: 56px;
  display: flex;
  // justify-content: center;
  align-items: center;
  font-size: 14px;
  :deep(.add-btn1) {
    font-size: 14px;
  }
}
.audeo-parent {
  width: 1180px;
  margin: 0 auto;
  margin-bottom: 20px;
  :deep(.left-box-shadow) {
    opacity: 0.2;
  }
}
.audeo-parent1 {
  :deep(.t-slider__rail) {
    background: rgba(207, 189, 168, 0.2);
  }
  :deep(.t-slider__track) {
    background: rgba(207, 189, 168, 1);
  }
  :deep(.t-slider__button) {
    background: rgba(207, 189, 168, 1);
    border-color: rgba(207, 189, 168, 1);
  }
}
.audeo-parent2 {
  :deep(.t-slider__rail) {
    background: rgba(143, 158, 191, 0.2);
  }
  :deep(.t-slider__track) {
    background: rgba(143, 158, 191, 1);
  }
  :deep(.t-slider__button) {
    background: rgba(143, 158, 191, 1);
    border-color: rgba(143, 158, 191, 1);
  }
}
.audeo-parent3 {
  :deep(.t-slider__rail) {
    background: rgba(185, 70, 63, 0.2);
  }
  :deep(.t-slider__track) {
    background: rgba(185, 70, 63, 1);
  }
  :deep(.t-slider__button) {
    background: rgba(185, 70, 63, 1);
    border-color: rgba(185, 70, 63, 1);
  }
}
.audeo-parent4 {
  :deep(.t-slider__rail) {
    background: rgba(52, 48, 41, 0.2);
  }
  :deep(.t-slider__track) {
    background: rgba(52, 48, 41, 1);
  }
  :deep(.t-slider__button) {
    background: rgba(52, 48, 41, 1);
    border-color: rgba(52, 48, 41, 1);
  }
}
.audeo-parent5 {
  :deep(.t-slider__rail) {
    background: rgba(23, 23, 25, 0.2);
  }
  :deep(.t-slider__track) {
    background: rgba(23, 23, 25, 1);
  }
  :deep(.t-slider__button) {
    background: rgba(23, 23, 25, 1);
    border-color: rgba(23, 23, 25, 1);
  }
}
:deep(.t-dialog__header) {
  box-shadow: 0 0 0 0;
}
:deep(.t-dialog__footer) {
  box-shadow: 0 0 0 0;
}
:deep(.hw-dialog-box) {
  display: flex;
  justify-content: center;
  align-items: center;
}
:deep(.hw-dialog-box-select) {
  flex: 1;
}
:deep(.t-dialog__body) {
  padding-top: 0;
  padding-bottom: 0;
}
.titles {
  width: 100px;
  font-size: 14px;
}
.t-badge {
  height: 22px;
  .doorIcon {
    display: block;
  }
}
</style>
